package gui;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

@SuppressWarnings("serial")
public class ChatWindow extends JFrame implements Runnable{
	String name;
	String address;
	int port;
	
	public ChatWindow(String name, String address, int port){
		this.name = name;
		this.address = address;
		this.port = port;
		run();
	}
	public void run(){
		JPanel chat = new JPanel();
		JTextArea cWin = new JTextArea();
		JScrollPane chatscroll = new JScrollPane(cWin);
		
		
		
		
		chat.add(chatscroll);
		this.setTitle(name);
		this.add(chat);
        this.setVisible(true);
        this.setSize(400, 450);
        this.setResizable(false);
        this.validate();
	}
	
	public void view(){
		
	}
}
